package com.dmai.capacity.platform.oauth.common.mapper;

import com.dmai.capacity.platform.common.model.OauthUserPackage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 客户开通资源包表
 *
 * @author
 * @email
 * @date 2024-03-29 21:14:28
 */
@Mapper
public interface OauthUserPackageDao {

    List<OauthUserPackage> findEffectiveByCapability(@Param("userid") Integer userid, @Param("capabilityId") Integer capabilityId);

    int save(OauthUserPackage oauthUserPackage);

    OauthUserPackage findById(Integer id);

    int updatePaid(OauthUserPackage oauthUserPackage);

    int updateAvailable(OauthUserPackage oauthUserPackage);

    int delete(String id);


}
